<!-- directive:title 代码自动化生产 产品 -->
<!-- directive:breadcrumb 自动化 -->
<div class="panel-body">
    <form class="yxf14 bigpadding" name="From">
        <b class="yxf14-title"> <i></i> 开卡表单 </b>
        <p class="yxf14-subtitle-red">* 文件上传</p>
        <div class="yxf14-box">
            <label class="yxf14-label">产品主图</label>
            <div class="yxf14-control">
                <div class="btn btnFileimgView" style="padding: 0px;">
                    <img ng-src='{{ frm.f23 ? "http://localhost:4010/"+frm.f23 : "../../images/img.addpic.jpg" }}' />
                    <input fileup type="file" ng-model="frm2.f23" callback="frm2.f23upload()">
                </div>
                <b class="note">建议尺寸为750像素*400像素,格式为‘.jpg', '.jpeg', '.png'！</b>
                <input type="text" placeholder="" style="display:none;"
                    ng-model="frm.f23" name="f23"
                    required>
                <b ng-show="(From.submitted ) && From.f23.$invalid"> 必填项 </b>
            </div>
        </div>
        <div class="yxf14-box">
            <label class="yxf14-label">文件上传</label>
            <div class="yxf14-control">
                <div class="btn btnFileimg" title='{{frm.f24 || "未选择任何文件"}}'>
                    <span><img src="../../images/img.upfile.png" />点击上传</span>
                    <input fileup type="file" ng-model="frm2.f24" callback="frm2.f24upload()">
                </div>
                <b class="note">建议尺寸为750像素*400像素,格式为‘.jpg', '.jpeg', '.png'！</b>
            </div>
            <div class="yxf14-control" ng-if="frm.f24">
                <div class="btn btnFileimgView">
                    <img ng-src='{{ "http://localhost:4010/" + frm.f24 }}' />
                </div>
            </div>
        </div>
        <!-- 提交 -->
        <div class="yxf14-box">
            <div class="yxf14-control">
                <button type="button" class="btn btn-danger" ng-click="submitFun($event)">提交表单</button>
                <button type="button" class="btn btn-grey" ng-click="cancelFun()">取消</button>
            </div>
        </div>
    </form>
</div>